package com.ebt.m.activity;

import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.view.View;

import com.ebt.m.R;
import com.ebt.m.homepage.OpportunityContentView;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by andy on 2017/8/17.
 */

public class MessageCenterActivity extends BaseToolBarActivity {

    @BindView(R.id.message_view)
    OpportunityContentView messageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_SHOW_TITLE);
        setTitle("消息中心");
        View view = View.inflate(this, R.layout.layout_messagecenter, null);
        setContentView(view);
        ButterKnife.bind(this, view);
        messageView.post(() -> messageView.update());
    }
}
